/*-
 * DaermaBusinessProcessorTester.java
 *
 * Date: 2017年3月26日
 * Time: 下午5:29:41
 *
 * 版权所有©2012-2013 rengh
 */

package com.lmx.persistence.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader;
import org.springframework.test.context.web.WebAppConfiguration;

import com.lmx.PersistenceConfig;
import com.lmx.ThirdPartConfig;
import com.lmx.thirdPart.ThirdPartBusiException;
import com.lmx.thirdPart.daerma.DaermaBusinessProcessor;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = { ThirdPartConfig.class,PersistenceConfig.class }, loader = AnnotationConfigContextLoader.class)
@WebAppConfiguration
public class DaermaBusinessProcessorTester {
    private static Log logger = LogFactory.getLog(DaermaBusinessProcessorTester.class);
    @Autowired
    private DaermaBusinessProcessor businessProcessor;


    @Test
    public final void testGetDeviceStatus() {
        try {
            businessProcessor.getDeviceStatus();
        } catch (ThirdPartBusiException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }   
  
}
